package com.example.hi2_android;

import android.app.Activity;
//import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class Hi2_android extends Activity {
	@Override

	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        ((TextView) findViewById(R.id.messageboxtxt)).setText("hi");
        
        final Button Broker = ((Button) findViewById(R.id.broker_button));  	  	
  	  	
  	  Broker.setOnClickListener(new OnClickListener() {			
			@Override
			public void onClick(View v) {	
				Log.d("ClientActivity", "C:in activity...");
				hi2_service.actionStart(getApplicationContext());
		    /*	Editor editor = getSharedPreferences(PushService.TAG, MODE_PRIVATE).edit();
		    	editor.putString(PushService.PREF_DEVICE_ID, mDeviceID);
		    	editor.commit();
				PushService.actionStart(getApplicationContext());		        
		  		startButton.setEnabled(false);
		  		stopButton.setEnabled(true);*/				
			}
		});    
	}
}